# app/schemas/family/recipe.py
from typing import Optional, List
from pydantic import BaseModel

class RecipeBase(BaseModel):
    name: str
    type: str
    difficulty: int
    cooking_time: int
    servings: int
    ingredients: Optional[str] = None
    instructions: Optional[str] = None
    tips: Optional[str] = None

class RecipeCreate(RecipeBase):
    user_id: int
    family_id: int

class RecipeUpdate(RecipeBase):
    id: int

class RecipeInDB(RecipeBase):
    id: int
    user_id: int
    family_id: int
    created_at: str
    updated_at: str
    
    class Config:
        orm_mode = True